package cn.xanderye.feign.consumer.service;

import cn.xanderye.feign.consumer.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("hello-service")
public interface HelloService {

    @RequestMapping("hello")
    String hello();

    @GetMapping("hello1")
    String hello(@RequestParam String name);

    @GetMapping("hello2")
    User hello(@RequestHeader String name, @RequestHeader Integer age);

    @PostMapping("hello3")
    String hello(@RequestBody User user);
}
